import api from '@/api/api'

const interfaceRoles = {
  name: '界面',
  role: '/interface',
  children: [
    {
      name: '模板',
      role: '/template',
      api: ['/api/admin/template/tree',

        '/api/admin/template/getSolutions',
        '/api/admin/template/solutionupdate',
        '/api/admin/template/get',
        '/template/mange'],
      children: [
        {
          name: '列表',
          role: '/templatelist',
          api: ['/api/admin/template/list']
        },
        {
          name: '删除',
          role: '/templatedelete',
          api: ['/api/admin/template/delete']
        },
        {
          name: '重命名',
          role: '/templaterename',
          api: ['/api/admin/template/rename']
        },
        {
          name: '修改',
          role: '/templateedit',
          api: ['/api/admin/template/update']
        },
        {
          name: '新建文件/文件夹',
          role: 'templateadd',
          api: ['api/admin/template/dir_save']
        },
        {
          name: '保存',
          role: '/templatesave',
          api: ['/api/admin/template/save']
        }
      ]
    },
    {
      name: '资源',
      role: '/resource',
      api: ['/api/admin/resource/tree', '/api/admin/resource/get',
        '/resource/mange'],
      children: [
        {
          name: '列表',
          role: '/resourcelist',
          api: ['/api/admin/resource/list']
        },
        {
          name: '删除',
          role: '/resourcedelete',
          api: ['/api/admin/resource/delete']
        },
        {
          name: '重命名',
          role: '/resourcerename',
          api: ['/api/admin/resource/rename']
        },
        {
          name: '修改',
          role: '/resourceedit',
          api: ['/api/admin/template/update']
        },
        {
          name: '新建文件/文件夹',
          role: '/resourceadd',
          api: ['api/admin/resource/dir_save']
        },
        {
          name: '保存',
          role: '/resourcesave',
          api: ['/api/admin/resource/save']
        }
      ]
    },
  ]
}
export default interfaceRoles;
